<script type="text/javascript">
function openWin(){
// child windows
var srcFile = "child.html";
// windows features
var winFeatures = "dialogHeight:300px; dialogLeft:200px;";
// The form id as param
var obj = getForm;
// open windows
window.showModalDialog(srcFile, obj, winFeatures);
}
</script>
<form id="getForm">
Get value:
<input type="text" id="getValue" readOnly>
</form>
<input type="button" value="open" onClick="openWin()">
